using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using CristiPotlog.Controls;
using ICP_MS.Plugin.Tune.Properties;
using iTextSharp.text;
using iTextSharp.text.pdf;
using NPOI.SS.UserModel;
using NPOI.XSSF.UserModel;
using ZedGraph;

namespace ICP_MS.Plugin.Tune;

public class FormInstrumentCheckExperiment : Form
{
	public CheckExperiment experiment = new CheckExperiment();

	private bool pauseUptake = false;

	private Thread threadUptake = null;

	private IContainer components = null;

	private Wizard wizard1;

	private WizardPage wizardPageScan;

	private WizardPage wizardPageElements;

	private WizardPage wizardPageWelcome;

	private WizardPage wizardPageLowConPrepare;

	private WizardPage wizardPageEnterSampler1;

	private WizardPage wizardPageHighConPrepare;

	private WizardPage wizardPageEnterSampler2;

	private TextBox textBox3;

	private TextBox textBox2;

	private System.Windows.Forms.Label label5;

	private System.Windows.Forms.Label label3;

	private System.Windows.Forms.Label lblSolution;

	private System.Windows.Forms.Label label6;

	private System.Windows.Forms.Label label7;

	private Button btnContinue;

	private Button btnPause;

	private System.Windows.Forms.Label lblUptake;

	private ProgressBar barUptake;

	private System.Windows.Forms.Label label8;

	private WizardPage wizardPageScan1;

	private System.Windows.Forms.Label label9;

	private System.Windows.Forms.Label label10;

	private System.Windows.Forms.Label label11;

	private Button btnContinue1;

	private Button btnPause1;

	private System.Windows.Forms.Label lblUptake1;

	private ProgressBar barUptake1;

	private System.Windows.Forms.Label label13;

	private WizardPage wizardPageScan2;

	private WizardPage wizardPageFinish;

	private System.Windows.Forms.Label label12;

	private System.Windows.Forms.Label label14;

	private WizardPage PageCheckResult;

	private DataGridView dgvRatioResult;

	private DataGridView dgvBkgResult;

	private DataGridView dgvElementResult;

	private ListBox listBoxProcess;

	private System.Windows.Forms.Label label15;

	private System.Windows.Forms.Label label4;

	private WizardPage wizardPageMassResult;

	private DataGridView dgvMassResolution;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn6;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn8;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn9;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn10;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn11;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn13;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn14;

	private ZedGraphControl graphMass;

	private WizardPage wizardPageResultCal;

	private TextBox textBox1;

	private System.Windows.Forms.Label label2;

	private System.Windows.Forms.Label label1;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;

	private DataGridViewTextBoxColumn ColName;

	public FormInstrumentCheckExperiment()
	{
		InitializeComponent();
	}

	private void FormInstrumentDeadTime_Load(object sender, EventArgs e)
	{
		experiment.InitIsotopes();
		graphMass.GraphPane.Title.Text = "Spectrum";
		graphMass.GraphPane.XAxis.Title.Text = "m/z";
		graphMass.GraphPane.YAxis.Title.Text = "ICPS";
		wizard1.CancelText = Lang.Txt("Tune.Cancel");
		wizard1.OkText = Lang.Txt("Tune.OK");
		wizard1.NextText = Lang.Txt("Tune.Next");
		wizard1.BackText = Lang.Txt("Tune.Back");
		Text = Lang.Txt("ADDTune.Tune.InstrumentSelfTest");
		wizardPageWelcome.Title = Lang.Txt("CheckExperiment.Text13");
		wizardPageWelcome.Description = Lang.Txt("CheckExperiment.Text14");
		wizardPageElements.Title = Lang.Txt("CheckExperiment.Text15");
		wizardPageElements.Description = Lang.Txt("CheckExperiment.Text16");
		label4.Text = Lang.Txt("CheckExperiment.Text17");
		label15.Text = Lang.Txt("CheckExperiment.Text18");
		wizardPageScan.Title = Lang.Txt("CheckExperiment.Text19");
		wizardPageScan.Description = Lang.Txt("CheckExperiment.Text20");
		label3.Text = Lang.Txt("CheckExperiment.Text21");
		label5.Text = Lang.Txt("CheckExperiment.Text22");
		wizardPageHighConPrepare.Title = Lang.Txt("CheckExperiment.Text23");
		wizardPageHighConPrepare.Description = Lang.Txt("CheckExperiment.Text23");
		label11.Text = Lang.Txt("Tune.Text24");
		label10.Text = Lang.Txt("Tune.Text25");
		wizardPageEnterSampler2.Title = Lang.Txt("CheckExperiment.Text23");
		wizardPageEnterSampler2.Description = Lang.Txt("CheckExperiment.Text24");
		label13.Text = Lang.Txt("Tune.Text27");
		btnPause1.Text = Lang.Txt("Tune.Pause");
		btnContinue1.Text = Lang.Txt("Tune.Continue");
		wizardPageScan2.Title = Lang.Txt("CheckExperiment.Text25");
		wizardPageScan2.Description = Lang.Txt("CheckExperiment.Text23");
		wizardPageMassResult.Title = Lang.Txt("CheckExperiment.Text27");
		wizardPageMassResult.Description = Lang.Txt("CheckExperiment.Text26");
		dataGridViewTextBoxColumn4.HeaderText = Lang.Txt("CheckExperiment.Parameters");
		wizardPageLowConPrepare.Title = Lang.Txt("CheckExperiment.Text28");
		wizardPageLowConPrepare.Description = Lang.Txt("CheckExperiment.Text29");
		label7.Text = Lang.Txt("Tune.Text24");
		label6.Text = Lang.Txt("Tune.Text25");
		lblSolution.Text = Lang.Txt("CheckExperiment.Text30");
		wizardPageEnterSampler1.Title = Lang.Txt("CheckExperiment.Text31");
		wizardPageEnterSampler1.Description = Lang.Txt("CheckExperiment.Text30");
		label8.Text = Lang.Txt("Tune.Text27");
		btnPause.Text = Lang.Txt("Tune.Pause");
		btnContinue.Text = Lang.Txt("Tune.Continue");
		wizardPageScan1.Title = Lang.Txt("CheckExperiment.Text32");
		wizardPageScan1.Description = Lang.Txt("CheckExperiment.Text33");
		PageCheckResult.Title = Lang.Txt("CheckExperiment.Text27");
		PageCheckResult.Description = Lang.Txt("CheckExperiment.Text34");
		ColName.HeaderText = Lang.Txt("CheckExperiment.Parameters");
		dataGridViewTextBoxColumn1.HeaderText = Lang.Txt("CheckExperiment.Parameters");
		dataGridViewTextBoxColumn3.HeaderText = Lang.Txt("CheckExperiment.Parameters");
		wizardPageFinish.Title = Lang.Txt("CheckExperiment.Text35");
		wizardPageFinish.Description = Lang.Txt("CheckExperiment.Text36");
	}

	private void btnPause_Click(object sender, EventArgs e)
	{
		pauseUptake = true;
		btnContinue.Enabled = true;
		btnPause.Enabled = false;
	}

	private void btnContinue_Click(object sender, EventArgs e)
	{
		pauseUptake = false;
		btnPause.Enabled = true;
		btnContinue.Enabled = false;
	}

	private void ShowUptake()
	{
		pauseUptake = false;
		btnPause.Enabled = true;
		btnContinue.Enabled = false;
		int tickCount = 40;
		threadUptake = new Thread((ThreadStart)delegate
		{
			while (tickCount > 0)
			{
				if (!pauseUptake)
				{
					tickCount--;
				}
				Invoke((MethodInvoker)delegate
				{
					barUptake.Value = tickCount;
					lblUptake.Text = $"{tickCount} s";
				});
				Thread.Sleep(1000);
			}
			Invoke((MethodInvoker)delegate
			{
				wizard1.Next();
			});
		});
		threadUptake.Start();
	}

	private void ShowUptake1()
	{
		pauseUptake = false;
		btnPause1.Enabled = true;
		btnContinue1.Enabled = false;
		int tickCount = 40;
		threadUptake = new Thread((ThreadStart)delegate
		{
			while (tickCount > 0)
			{
				if (!pauseUptake)
				{
					tickCount--;
				}
				Invoke((MethodInvoker)delegate
				{
					barUptake1.Value = tickCount;
					lblUptake1.Text = $"{tickCount} s";
				});
				Thread.Sleep(1000);
			}
			Invoke((MethodInvoker)delegate
			{
				wizard1.Next();
			});
		});
		threadUptake.Start();
	}

	private void wizard1_BeforeSwitchPages(object sender, Wizard.BeforeSwitchPagesEventArgs e)
	{
		WizardPage newPage = wizard1.Pages[e.OldIndex];
		switch (e.OldIndex)
		{
		case 0:
			break;
		case 1:
			break;
		case 2:
			int.TryParse(textBox2.Text, out experiment.dwelltime);
			int.TryParse(textBox3.Text, out experiment.sweeps);
			break;
		case 3:
			break;
		case 4:
			if (threadUptake != null && threadUptake.IsAlive)
			{
				threadUptake.Abort();
				threadUptake = null;
			}
			break;
		case 5:
			experiment.EventTuneFinish -= experiment_EventTuneFinish;
			experiment.EventTuneMsg -= experiment_EventTuneMsg;
			experiment.msc.RefreshSpectrums -= Msc_RefreshSpectrums;
			experiment.msc.CalibrationFinish -= Msc_CalibrationFinish;
			experiment.msc.DeinitForCheck();
			break;
		case 6:
			break;
		case 7:
			break;
		case 8:
			if (threadUptake != null && threadUptake.IsAlive)
			{
				threadUptake.Abort();
				threadUptake = null;
			}
			break;
		case 9:
			experiment.EventTuneFinish -= experiment_EventTuneFinish;
			experiment.EventTuneMsg -= experiment_EventTuneMsg;
			break;
		case 10:
			break;
		}
	}

	private void ShowResults1()
	{
		dgvElementResult.Rows.Clear();
		dgvBkgResult.Rows.Clear();
		dgvRatioResult.Rows.Clear();
		dgvElementResult.Columns.Clear();
		dgvBkgResult.Columns.Clear();
		dgvRatioResult.Columns.Clear();
		dgvElementResult.Columns.Add(new DataGridViewColumn
		{
			Name = "ColName",
			HeaderText = Lang.Txt("CheckExperiment.Parameters"),
			Width = 100,
			ValueType = typeof(string),
			CellTemplate = new DataGridViewTextBoxCell()
		});
		foreach (AnalyteIsotope isotope3 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
		{
			DataGridViewColumn column3 = new DataGridViewColumn();
			column3.HeaderText = isotope3.symbol;
			column3.Name = "Col" + isotope3.symbol;
			column3.Width = 100;
			column3.ValueType = typeof(double);
			column3.CellTemplate = new DataGridViewTextBoxCell();
			dgvElementResult.Columns.Add(column3);
		}
		dgvElementResult.Rows.Add(2);
		dgvElementResult.Rows[0].Cells["ColName"].Value = Lang.Txt("AddFormSpectrums.Intensity");
		dgvElementResult.Rows[1].Cells["ColName"].Value = "RSD";
		foreach (AnalyteIsotope isotope4 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
		{
			dgvElementResult.Rows[0].Cells["Col" + isotope4.symbol].Value = Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope4.symbol).avgCPS, 1);
			dgvElementResult.Rows[1].Cells["Col" + isotope4.symbol].Value = Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope4.symbol).rsdCPS, 1);
		}
		dgvElementResult.Refresh();
		dgvBkgResult.Columns.Add(new DataGridViewColumn
		{
			Name = "ColName",
			HeaderText = Lang.Txt("CheckExperiment.Parameters"),
			Width = 100,
			ValueType = typeof(string),
			CellTemplate = new DataGridViewTextBoxCell()
		});
		foreach (AnalyteIsotope isotope in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
		{
			DataGridViewColumn column2 = new DataGridViewColumn();
			column2.HeaderText = isotope.symbol;
			column2.Name = "Col" + isotope.symbol;
			column2.Width = 100;
			column2.ValueType = typeof(double);
			column2.CellTemplate = new DataGridViewTextBoxCell();
			dgvBkgResult.Columns.Add(column2);
		}
		dgvBkgResult.Rows.Add(2);
		dgvBkgResult.Rows[0].Cells["ColName"].Value = Lang.Txt("AddFormSpectrums.Intensity");
		dgvBkgResult.Rows[1].Cells["ColName"].Value = "RSD";
		foreach (AnalyteIsotope isotope2 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
		{
			dgvBkgResult.Rows[0].Cells["Col" + isotope2.symbol].Value = Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope2.symbol).avgCPS, 2);
			dgvBkgResult.Rows[1].Cells["Col" + isotope2.symbol].Value = Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope2.symbol).rsdCPS, 2);
		}
		dgvBkgResult.Refresh();
		dgvRatioResult.Columns.Add(new DataGridViewColumn
		{
			Name = "ColName",
			HeaderText = Lang.Txt("CheckExperiment.Parameters"),
			Width = 100,
			ValueType = typeof(string),
			CellTemplate = new DataGridViewTextBoxCell()
		});
		foreach (IsotopeRatio ratio in experiment.Ratios)
		{
			DataGridViewColumn column = new DataGridViewColumn();
			column.HeaderText = ratio.Name;
			column.Name = "Col" + ratio.Name;
			column.Width = 100;
			column.ValueType = typeof(double);
			column.CellTemplate = new DataGridViewTextBoxCell();
			dgvRatioResult.Columns.Add(column);
		}
		dgvRatioResult.Rows.Add(2);
		dgvRatioResult.Rows[0].Cells["ColName"].Value = Lang.Txt("AddFormSpectrums.Intensity");
		dgvRatioResult.Rows[1].Cells["ColName"].Value = "RSD";
		foreach (IsotopeRatio ratio2 in experiment.Ratios)
		{
			dgvRatioResult.Rows[0].Cells["Col" + ratio2.Name].Value = Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == ratio2.Name).Avg * 100.0, 4);
			dgvRatioResult.Rows[1].Cells["Col" + ratio2.Name].Value = Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == ratio2.Name).Rsd, 4);
		}
		dgvRatioResult.Refresh();
	}

	private void ShowResults2()
	{
		dgvMassResolution.Rows.Clear();
		dgvMassResolution.Columns.Clear();
		dgvMassResolution.Columns.Add(new DataGridViewColumn
		{
			Name = "ColName",
			HeaderText = " ",
			Width = 100,
			ValueType = typeof(string),
			CellTemplate = new DataGridViewTextBoxCell()
		});
		foreach (MassFactor massFactor in experiment.msc.MassFactors)
		{
			DataGridViewColumn column = new DataGridViewColumn();
			column.HeaderText = massFactor.symbol;
			column.Name = "Col" + massFactor.symbol;
			column.Width = 100;
			column.ValueType = typeof(double);
			column.CellTemplate = new DataGridViewTextBoxCell();
			dgvMassResolution.Columns.Add(column);
		}
		dgvMassResolution.Rows.Add(2);
		dgvMassResolution.Rows[0].Cells["ColName"].Value = Lang.Txt("CheckExperiment.Text10");
		dgvMassResolution.Rows[1].Cells["ColName"].Value = Lang.Txt("ADDTune.TuneDebug.Resolution");
		foreach (MassFactor massFactor2 in experiment.msc.MassFactors)
		{
			dgvMassResolution.Rows[0].Cells["Col" + massFactor2.symbol].Value = Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == massFactor2.symbol).error, 3);
			dgvMassResolution.Rows[1].Cells["Col" + massFactor2.symbol].Value = Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == massFactor2.symbol).width, 3);
		}
		dgvMassResolution.Refresh();
	}

	private void experiment_EventTuneMsg(object sender, MsgEventArgs e)
	{
		if (!base.InvokeRequired)
		{
			return;
		}
		Invoke((MethodInvoker)delegate
		{
			if (e.Message.StartsWith("1:"))
			{
				label12.Text = e.Message;
			}
			else if (e.Message.StartsWith("2:"))
			{
				label14.Text = e.Message;
			}
			else if (e.Message.StartsWith("1:"))
			{
				listBoxProcess.Items.Add(e.Message.Replace("1:", ""));
			}
		});
	}

	private void experiment_EventTuneFinish(object sender, EventArgs e)
	{
		if (!base.InvokeRequired)
		{
			return;
		}
		Invoke((MethodInvoker)delegate
		{
			if (experiment.TuneSucceed)
			{
				Invoke((MethodInvoker)delegate
				{
					wizard1.NextEnabled = true;
				});
				wizard1.Next();
			}
			else if (MessageBox.Show(Lang.Txt("CheckExperiment.Text11"), Lang.Txt("AddFormIgnite.Warn"), MessageBoxButtons.YesNo) == DialogResult.Yes)
			{
				StartScan();
			}
			else
			{
				Close();
			}
		});
	}

	private void ExportPDF()
	{
		Document document = new Document();
		PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("xxx.pdf", FileMode.Create));
		document.Open();
		PdfPTable pTable = new PdfPTable(10);
		pTable.AddCell(Lang.Txt("CheckExperiment.Parameters"));
		foreach (AnalyteIsotope isotope8 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
		{
			pTable.AddCell(isotope8.symbol.ToString());
		}
		pTable.AddCell(Lang.Txt("AddFormSpectrums.Intensity"));
		foreach (AnalyteIsotope isotope7 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
		{
			pTable.AddCell(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope7.symbol).avgCPS, 1).ToString());
		}
		pTable.AddCell("RSD(%)");
		foreach (AnalyteIsotope isotope6 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
		{
			pTable.AddCell(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope6.symbol).rsdCPS, 1).ToString());
		}
		document.Add(pTable);
		pTable = new PdfPTable(4);
		pTable.AddCell(Lang.Txt("CheckExperiment.Parameters"));
		foreach (AnalyteIsotope isotope5 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
		{
			pTable.AddCell(isotope5.symbol.ToString());
		}
		pTable.AddCell(Lang.Txt("AddFormSpectrums.Intensity"));
		foreach (AnalyteIsotope isotope4 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
		{
			pTable.AddCell(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope4.symbol).avgCPS, 1).ToString());
		}
		pTable.AddCell("RSD(%)");
		foreach (AnalyteIsotope isotope3 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
		{
			pTable.AddCell(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope3.symbol).rsdCPS, 1).ToString());
		}
		document.Add(pTable);
		pTable = new PdfPTable(3);
		pTable.AddCell(Lang.Txt("Tune.Ratio"));
		foreach (IsotopeRatio ratio in experiment.Ratios)
		{
			pTable.AddCell(ratio.Name);
		}
		pTable.AddCell(Lang.Txt("AddFormSpectrums.Intensity"));
		foreach (IsotopeRatio isotope2 in experiment.Ratios)
		{
			pTable.AddCell(Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope2.Name).Avg, 4).ToString());
		}
		pTable.AddCell("RSD(%)");
		foreach (IsotopeRatio isotope in experiment.Ratios)
		{
			pTable.AddCell(Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope.Name).Rsd, 4).ToString());
		}
		document.Add(pTable);
		pTable = new PdfPTable(9);
		pTable.AddCell(Lang.Txt("FormMassFactor.Mass.Text"));
		foreach (MassFactor factor3 in experiment.msc.MassFactors)
		{
			pTable.AddCell(factor3.symbol);
		}
		pTable.AddCell(Lang.Txt("FormInstrumentCalibration.Columns.Error.Text"));
		foreach (MassFactor factor2 in experiment.msc.MassFactors)
		{
			pTable.AddCell(Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == factor2.symbol).error, 2).ToString());
		}
		pTable.AddCell(Lang.Txt("ADDTune.TuneDebug.Resolution"));
		foreach (MassFactor factor in experiment.msc.MassFactors)
		{
			pTable.AddCell(Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == factor.symbol).width, 2).ToString());
		}
		document.Add(pTable);
		document.Close();
		writer.Close();
	}

	private void ExportExcelInNPOI()
	{
		try
		{
			int rowindex = 0;
			FileStream fs;
			XSSFWorkbook workbook;
			using (fs = File.OpenRead("InstrumentCheck.xlsx"))
			{
				workbook = new XSSFWorkbook((Stream)fs);
			}
			ISheet sheet = workbook.CreateSheet(DateTime.Now.ToString("yyyyMMddHHmmss"));
			IRow row = sheet.CreateRow(rowindex++);
			ICell cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("CheckExperiment.Parameters"));
			int i = 1;
			foreach (AnalyteIsotope isotope7 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(isotope7.symbol.ToString());
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("AddFormSpectrums.Intensity"));
			i = 1;
			foreach (AnalyteIsotope isotope6 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope6.symbol).avgCPS, 1));
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue("RSD(%)");
			i = 1;
			foreach (AnalyteIsotope isotope5 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope5.symbol).rsdCPS, 1));
				i++;
			}
			sheet.CreateRow(rowindex++);
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("CheckExperiment.Parameters"));
			i = 1;
			foreach (AnalyteIsotope isotope8 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(isotope8.symbol.ToString());
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("AddFormSpectrums.Intensity"));
			i = 1;
			foreach (AnalyteIsotope isotope4 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope4.symbol).avgCPS, 1));
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue("RSD(%)");
			i = 1;
			foreach (AnalyteIsotope isotope3 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope3.symbol).rsdCPS, 1));
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("Tune.Ratio"));
			i = 1;
			foreach (IsotopeRatio ratio in experiment.Ratios)
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(ratio.Name);
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("AddFormSpectrums.Intensity"));
			i = 1;
			foreach (IsotopeRatio isotope2 in experiment.Ratios)
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope2.Name).Avg * 100.0, 4));
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue("RSD(%)");
			i = 1;
			foreach (IsotopeRatio isotope in experiment.Ratios)
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope.Name).Rsd, 4));
				i++;
			}
			sheet.CreateRow(rowindex++);
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("FormMassFactor.Mass.Text"));
			i = 1;
			foreach (MassFactor factor in experiment.msc.MassFactors)
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(factor.symbol);
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("FormInstrumentCalibration.Columns.Error.Text"));
			i = 1;
			foreach (MassFactor factor3 in experiment.msc.MassFactors)
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == factor3.symbol).error, 2));
				i++;
			}
			row = sheet.CreateRow(rowindex++);
			cellid = row.CreateCell(0);
			cellid.SetCellValue(Lang.Txt("ADDTune.TuneDebug.Resolution"));
			i = 1;
			foreach (MassFactor factor2 in experiment.msc.MassFactors)
			{
				cellid = row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == factor2.symbol).width, 2));
				i++;
			}
			FileStream file = new FileStream("InstrumentCheck.xlsx", FileMode.OpenOrCreate, FileAccess.Write);
			workbook.Write(file);
			file.Dispose();
		}
		catch (Exception ex)
		{
			MessageBox.Show(ex.Message);
		}
	}

	private void ExportExcelInNPOIinTable()
	{
		try
		{
			int rowindex = 0;
			XSSFWorkbook workbook;
			using (FileStream fs = File.OpenRead("InstrumentCheck.xlsx"))
			{
				workbook = new XSSFWorkbook((Stream)fs);
				fs.Close();
			}
			XSSFSheet sheet;
			for (sheet = (XSSFSheet)workbook.GetSheet("CPS AND RSD"); sheet.GetRow(rowindex) != null; rowindex++)
			{
			}
			XSSFRow row = (XSSFRow)sheet.CreateRow(rowindex++);
			int i = 0;
			XSSFCell cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(Lang.Txt("AddFormSpectrums.Intensity"));
			foreach (AnalyteIsotope isotope6 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope6.symbol).avgCPS, 1));
				i++;
			}
			i = 0;
			row = (XSSFRow)sheet.CreateRow(rowindex++);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue("RSD(%)");
			foreach (AnalyteIsotope isotope5 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope5.symbol).rsdCPS, 1));
				i++;
			}
			sheet = (XSSFSheet)workbook.GetSheet("BKG");
			for (rowindex = 0; sheet.GetRow(rowindex) != null; rowindex++)
			{
			}
			row = (XSSFRow)sheet.CreateRow(rowindex++);
			i = 0;
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(Lang.Txt("AddFormSpectrums.Intensity"));
			foreach (AnalyteIsotope isotope4 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope4.symbol).avgCPS, 1));
				i++;
			}
			row = (XSSFRow)sheet.CreateRow(rowindex++);
			i = 0;
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue("RSD(%)");
			foreach (AnalyteIsotope isotope3 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope3.symbol).rsdCPS, 1));
				i++;
			}
			sheet = (XSSFSheet)workbook.GetSheet("RATIO");
			for (rowindex = 0; sheet.GetRow(rowindex) != null; rowindex++)
			{
			}
			row = (XSSFRow)sheet.CreateRow(rowindex++);
			i = 0;
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(Lang.Txt("AddFormSpectrums.Intensity"));
			foreach (IsotopeRatio isotope2 in experiment.Ratios)
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope2.Name).Avg * 100.0, 4));
				i++;
			}
			row = (XSSFRow)sheet.CreateRow(rowindex++);
			i = 0;
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue("RSD(%)");
			foreach (IsotopeRatio isotope in experiment.Ratios)
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope.Name).Rsd, 4));
				i++;
			}
			sheet = (XSSFSheet)workbook.GetSheet("MASS");
			for (rowindex = 0; sheet.GetRow(rowindex) != null; rowindex++)
			{
			}
			row = (XSSFRow)sheet.CreateRow(rowindex++);
			i = 0;
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(Lang.Txt("FormInstrumentCalibration.Columns.Error.Text"));
			foreach (MassFactor factor2 in experiment.msc.MassFactors)
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == factor2.symbol).error, 2));
				i++;
			}
			row = (XSSFRow)sheet.CreateRow(rowindex++);
			i = 0;
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(DateTime.Now);
			cellid = (XSSFCell)row.CreateCell(i++);
			cellid.SetCellValue(Lang.Txt("ADDTune.TuneDebug.Resolution"));
			foreach (MassFactor factor in experiment.msc.MassFactors)
			{
				cellid = (XSSFCell)row.CreateCell(i);
				cellid.SetCellValue(Math.Round(experiment.msc.MassFactors.Find((MassFactor r) => r.symbol == factor.symbol).width, 2));
				i++;
			}
			FileStream file = new FileStream("InstrumentCheck1.xlsx", FileMode.OpenOrCreate, FileAccess.Write);
			workbook.Write(file);
			file.Dispose();
			File.Delete("InstrumentCheck.xlsx");
			File.Move("InstrumentCheck1.xlsx", "InstrumentCheck.xlsx");
			File.Delete("InstrumentCheck1.xlsx");
		}
		catch (Exception ex)
		{
			MessageBox.Show(ex.Message);
		}
	}

	private void ExportExcel()
	{
		using SaveFileDialog saveFileDialog = new SaveFileDialog();
		saveFileDialog.Title = Lang.Txt("CheckExperiment.Text12");
		saveFileDialog.Filter = "Csv File(*.csv)|*.csv";
		if (saveFileDialog.ShowDialog() != DialogResult.OK)
		{
			return;
		}
		using StreamWriter sw = new StreamWriter(saveFileDialog.FileName);
		try
		{
			sw.Write(Lang.Txt("Tune.Element"));
			sw.Write(",");
			foreach (AnalyteIsotope isotope9 in experiment.Isotopes.FindAll((AnalyteIsotope r) => !r.symbol.Contains("Bkg")))
			{
				sw.Write(isotope9.symbol.ToString());
				sw.Write(",");
			}
			sw.Write(Lang.Txt("AddFormSpectrums.Intensity"));
			sw.Write(",");
			foreach (AnalyteIsotope isotope8 in experiment.Isotopes)
			{
				sw.Write(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope8.symbol).avgCPS, 1).ToString());
				sw.Write(",");
			}
			sw.Write(Lang.Txt("ADDTune.TuneDebug.Stability"));
			sw.Write(",");
			foreach (AnalyteIsotope isotope7 in experiment.Isotopes)
			{
				sw.Write(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope7.symbol).rsdCPS, 4).ToString());
				sw.Write(",");
			}
			sw.WriteLine();
			sw.Write(Lang.Txt("Tune.Element"));
			sw.Write(",");
			foreach (AnalyteIsotope isotope6 in experiment.Isotopes.FindAll((AnalyteIsotope r) => r.symbol.Contains("Bkg")))
			{
				sw.Write(isotope6.symbol.ToString());
				sw.Write(",");
			}
			sw.Write(Lang.Txt("AddFormSpectrums.Intensity"));
			sw.Write(",");
			foreach (AnalyteIsotope isotope5 in experiment.Isotopes)
			{
				sw.Write(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope5.symbol).avgCPS, 4).ToString());
				sw.Write(",");
			}
			sw.Write(Lang.Txt("ADDTune.TuneDebug.Stability"));
			sw.Write(",");
			foreach (AnalyteIsotope isotope4 in experiment.Isotopes)
			{
				sw.Write(Math.Round(experiment.statisticResults.Find((StatisticResults r) => r.symbol == isotope4.symbol).rsdCPS, 4).ToString());
				sw.Write(",");
			}
			sw.WriteLine();
			sw.Write(Lang.Txt("AddFormRatio.Isotope"));
			sw.Write(",");
			foreach (IsotopeRatio isotope3 in experiment.Ratios)
			{
				sw.Write(isotope3.Name.ToString());
				sw.Write(",");
			}
			sw.Write(Lang.Txt("AddFormSpectrums.Intensity"));
			sw.Write(",");
			foreach (IsotopeRatio isotope2 in experiment.Ratios)
			{
				sw.Write(Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope2.Name).Avg, 2).ToString());
				sw.Write(",");
			}
			sw.Write(Lang.Txt("ADDTune.TuneDebug.Stability"));
			sw.Write(",");
			foreach (IsotopeRatio isotope in experiment.Ratios)
			{
				sw.Write((Math.Round(experiment.ratioStatistics.Find((RatioStatistics r) => r.Name == isotope.Name).Rsd, 4) * 100.0).ToString());
				sw.Write(",");
			}
			sw.WriteLine();
			sw.Close();
			MessageBox.Show("Success！", Lang.Txt("CheckExperiment.Text12"));
			Process.Start(saveFileDialog.FileName);
		}
		catch (Exception ex)
		{
			MessageBox.Show(ex.Message);
		}
	}

	private void StartScan()
	{
		experiment.StartScan();
	}

	private void StartMassScan()
	{
		experiment.StartMassScan();
	}

	private void wizard1_AfterSwitchPages(object sender, Wizard.AfterSwitchPagesEventArgs e)
	{
		WizardPage newPage = wizard1.Pages[e.NewIndex];
		switch (e.NewIndex)
		{
		case 0:
			break;
		case 1:
			break;
		case 2:
			break;
		case 3:
			break;
		case 4:
			ShowUptake1();
			break;
		case 5:
			experiment.EventTuneFinish += experiment_EventTuneFinish;
			experiment.EventTuneMsg += experiment_EventTuneMsg;
			experiment.msc.RefreshSpectrums += Msc_RefreshSpectrums;
			experiment.msc.CalibrationFinish += Msc_CalibrationFinish;
			experiment.msc.InitForCheck();
			StartMassScan();
			wizard1.NextEnabled = false;
			wizard1.BackEnabled = false;
			break;
		case 6:
			ShowResults2();
			wizard1.NextEnabled = true;
			break;
		case 7:
			break;
		case 8:
			ShowUptake();
			break;
		case 9:
			experiment.EventTuneFinish += experiment_EventTuneFinish;
			experiment.EventTuneMsg += experiment_EventTuneMsg;
			listBoxProcess.Items.Clear();
			StartScan();
			wizard1.NextEnabled = false;
			wizard1.BackEnabled = false;
			break;
		case 10:
			ShowResults1();
			break;
		}
	}

	private void Msc_CalibrationFinish(object sender, EventArgs e)
	{
		Invoke((MethodInvoker)delegate
		{
			wizard1.NextEnabled = true;
			wizard1.Next();
		});
	}

	private void Msc_RefreshSpectrums(object sender, EventArgs e)
	{
		graphMass.GraphPane.CurveList.Clear();
		Invoke((MethodInvoker)delegate
		{
			try
			{
				GraphPane graphPane = graphMass.GraphPane;
				graphPane.CurveList.Clear();
				graphPane.AddCurve("Orgin", experiment.msc.CurrentSpectums[0].Mass, experiment.msc.CurrentSpectums[0].Intensity, Color.Blue, SymbolType.None);
				graphPane.AddCurve("Filt", experiment.msc.CurrentSpectums[1].Mass, experiment.msc.CurrentSpectums[1].Intensity, Color.Red, SymbolType.None);
				graphPane.AxisChange();
				graphMass.Refresh();
			}
			catch
			{
			}
		});
	}

	private void Detector_pulseReceive(object sender, PointEventArgs e)
	{
	}

	private void btnPause1_Click(object sender, EventArgs e)
	{
		pauseUptake = true;
		btnContinue1.Enabled = true;
		btnPause1.Enabled = false;
	}

	private void btnContinue1_Click(object sender, EventArgs e)
	{
		pauseUptake = false;
		btnPause1.Enabled = true;
		btnContinue1.Enabled = false;
	}

	private void comboRatios_SelectedIndexChanged(object sender, EventArgs e)
	{
	}

	private void wizard1_Finish(object sender, EventArgs e)
	{
		ExportExcelInNPOIinTable();
		base.DialogResult = DialogResult.OK;
	}

	private void wizard1_Cancel(object sender, CancelEventArgs e)
	{
		if (experiment.isRun)
		{
			experiment.EventTuneMsg -= experiment_EventTuneMsg;
			experiment.EventTuneFinish -= experiment_EventTuneFinish;
			experiment.StopTune();
		}
	}

	private void wizardPageWelcome_Click(object sender, EventArgs e)
	{
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		this.components = new System.ComponentModel.Container();
		this.wizard1 = new CristiPotlog.Controls.Wizard();
		this.wizardPageFinish = new CristiPotlog.Controls.WizardPage();
		this.PageCheckResult = new CristiPotlog.Controls.WizardPage();
		this.dgvRatioResult = new System.Windows.Forms.DataGridView();
		this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dgvBkgResult = new System.Windows.Forms.DataGridView();
		this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dgvElementResult = new System.Windows.Forms.DataGridView();
		this.ColName = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.wizardPageScan1 = new CristiPotlog.Controls.WizardPage();
		this.listBoxProcess = new System.Windows.Forms.ListBox();
		this.label12 = new System.Windows.Forms.Label();
		this.wizardPageEnterSampler1 = new CristiPotlog.Controls.WizardPage();
		this.btnContinue = new System.Windows.Forms.Button();
		this.btnPause = new System.Windows.Forms.Button();
		this.lblUptake = new System.Windows.Forms.Label();
		this.barUptake = new System.Windows.Forms.ProgressBar();
		this.label8 = new System.Windows.Forms.Label();
		this.wizardPageLowConPrepare = new CristiPotlog.Controls.WizardPage();
		this.lblSolution = new System.Windows.Forms.Label();
		this.label6 = new System.Windows.Forms.Label();
		this.label7 = new System.Windows.Forms.Label();
		this.wizardPageMassResult = new CristiPotlog.Controls.WizardPage();
		this.dgvMassResolution = new System.Windows.Forms.DataGridView();
		this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.wizardPageScan2 = new CristiPotlog.Controls.WizardPage();
		this.graphMass = new ZedGraph.ZedGraphControl();
		this.label14 = new System.Windows.Forms.Label();
		this.wizardPageEnterSampler2 = new CristiPotlog.Controls.WizardPage();
		this.btnContinue1 = new System.Windows.Forms.Button();
		this.btnPause1 = new System.Windows.Forms.Button();
		this.lblUptake1 = new System.Windows.Forms.Label();
		this.barUptake1 = new System.Windows.Forms.ProgressBar();
		this.label13 = new System.Windows.Forms.Label();
		this.wizardPageHighConPrepare = new CristiPotlog.Controls.WizardPage();
		this.label9 = new System.Windows.Forms.Label();
		this.label10 = new System.Windows.Forms.Label();
		this.label11 = new System.Windows.Forms.Label();
		this.wizardPageScan = new CristiPotlog.Controls.WizardPage();
		this.textBox3 = new System.Windows.Forms.TextBox();
		this.textBox2 = new System.Windows.Forms.TextBox();
		this.label5 = new System.Windows.Forms.Label();
		this.label3 = new System.Windows.Forms.Label();
		this.wizardPageElements = new CristiPotlog.Controls.WizardPage();
		this.label15 = new System.Windows.Forms.Label();
		this.label4 = new System.Windows.Forms.Label();
		this.wizardPageWelcome = new CristiPotlog.Controls.WizardPage();
		this.wizardPageResultCal = new CristiPotlog.Controls.WizardPage();
		this.textBox1 = new System.Windows.Forms.TextBox();
		this.label2 = new System.Windows.Forms.Label();
		this.label1 = new System.Windows.Forms.Label();
		this.wizard1.SuspendLayout();
		this.PageCheckResult.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.dgvRatioResult).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.dgvBkgResult).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.dgvElementResult).BeginInit();
		this.wizardPageScan1.SuspendLayout();
		this.wizardPageEnterSampler1.SuspendLayout();
		this.wizardPageLowConPrepare.SuspendLayout();
		this.wizardPageMassResult.SuspendLayout();
		((System.ComponentModel.ISupportInitialize)this.dgvMassResolution).BeginInit();
		this.wizardPageScan2.SuspendLayout();
		this.wizardPageEnterSampler2.SuspendLayout();
		this.wizardPageHighConPrepare.SuspendLayout();
		this.wizardPageScan.SuspendLayout();
		this.wizardPageElements.SuspendLayout();
		this.wizardPageResultCal.SuspendLayout();
		base.SuspendLayout();
		this.wizard1.Controls.Add(this.wizardPageScan);
		this.wizard1.Controls.Add(this.wizardPageElements);
		this.wizard1.Controls.Add(this.wizardPageWelcome);
		this.wizard1.Controls.Add(this.wizardPageFinish);
		this.wizard1.Controls.Add(this.PageCheckResult);
		this.wizard1.Controls.Add(this.wizardPageScan1);
		this.wizard1.Controls.Add(this.wizardPageEnterSampler1);
		this.wizard1.Controls.Add(this.wizardPageLowConPrepare);
		this.wizard1.Controls.Add(this.wizardPageMassResult);
		this.wizard1.Controls.Add(this.wizardPageScan2);
		this.wizard1.Controls.Add(this.wizardPageEnterSampler2);
		this.wizard1.Controls.Add(this.wizardPageHighConPrepare);
		this.wizard1.Controls.Add(this.wizardPageResultCal);
		this.wizard1.Location = new System.Drawing.Point(0, 0);
		this.wizard1.Name = "wizard1";
		this.wizard1.Pages.AddRange(new CristiPotlog.Controls.WizardPage[12]
		{
			this.wizardPageWelcome, this.wizardPageElements, this.wizardPageScan, this.wizardPageHighConPrepare, this.wizardPageEnterSampler2, this.wizardPageScan2, this.wizardPageMassResult, this.wizardPageLowConPrepare, this.wizardPageEnterSampler1, this.wizardPageScan1,
			this.PageCheckResult, this.wizardPageFinish
		});
		this.wizard1.Size = new System.Drawing.Size(994, 485);
		this.wizard1.TabIndex = 5;
		this.wizard1.WelcomeImage = ICP_MS.Plugin.Tune.Properties.Resources.wizardWelcom;
		this.wizard1.BeforeSwitchPages += new CristiPotlog.Controls.Wizard.BeforeSwitchPagesEventHandler(wizard1_BeforeSwitchPages);
		this.wizard1.AfterSwitchPages += new CristiPotlog.Controls.Wizard.AfterSwitchPagesEventHandler(wizard1_AfterSwitchPages);
		this.wizard1.Cancel += new System.ComponentModel.CancelEventHandler(wizard1_Cancel);
		this.wizard1.Finish += new System.EventHandler(wizard1_Finish);
		this.wizardPageFinish.Description = "完成仪器自检";
		this.wizardPageFinish.Location = new System.Drawing.Point(0, 0);
		this.wizardPageFinish.Name = "wizardPageFinish";
		this.wizardPageFinish.Size = new System.Drawing.Size(994, 437);
		this.wizardPageFinish.Style = CristiPotlog.Controls.WizardPageStyle.Finish;
		this.wizardPageFinish.TabIndex = 11;
		this.wizardPageFinish.Title = "完成！";
		this.PageCheckResult.Controls.Add(this.dgvRatioResult);
		this.PageCheckResult.Controls.Add(this.dgvBkgResult);
		this.PageCheckResult.Controls.Add(this.dgvElementResult);
		this.PageCheckResult.Description = "RSD，强度，质量轴，氧化物产率，二次离子产率";
		this.PageCheckResult.Location = new System.Drawing.Point(0, 0);
		this.PageCheckResult.Name = "PageCheckResult";
		this.PageCheckResult.Size = new System.Drawing.Size(428, 208);
		this.PageCheckResult.TabIndex = 6;
		this.PageCheckResult.Title = "扫描结果";
		this.dgvRatioResult.AllowUserToAddRows = false;
		this.dgvRatioResult.AllowUserToDeleteRows = false;
		this.dgvRatioResult.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvRatioResult.Columns.AddRange(this.dataGridViewTextBoxColumn3);
		this.dgvRatioResult.Location = new System.Drawing.Point(466, 251);
		this.dgvRatioResult.Name = "dgvRatioResult";
		this.dgvRatioResult.RowHeadersVisible = false;
		this.dgvRatioResult.RowHeadersWidth = 51;
		this.dgvRatioResult.RowTemplate.Height = 27;
		this.dgvRatioResult.Size = new System.Drawing.Size(308, 173);
		this.dgvRatioResult.TabIndex = 4;
		this.dataGridViewTextBoxColumn3.HeaderText = "参数";
		this.dataGridViewTextBoxColumn3.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
		this.dataGridViewTextBoxColumn3.Width = 125;
		this.dgvBkgResult.AllowUserToAddRows = false;
		this.dgvBkgResult.AllowUserToDeleteRows = false;
		this.dgvBkgResult.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvBkgResult.Columns.AddRange(this.dataGridViewTextBoxColumn1);
		this.dgvBkgResult.Location = new System.Drawing.Point(40, 251);
		this.dgvBkgResult.Name = "dgvBkgResult";
		this.dgvBkgResult.RowHeadersVisible = false;
		this.dgvBkgResult.RowHeadersWidth = 51;
		this.dgvBkgResult.RowTemplate.Height = 27;
		this.dgvBkgResult.Size = new System.Drawing.Size(406, 173);
		this.dgvBkgResult.TabIndex = 4;
		this.dataGridViewTextBoxColumn1.HeaderText = "参数";
		this.dataGridViewTextBoxColumn1.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
		this.dataGridViewTextBoxColumn1.Width = 125;
		this.dgvElementResult.AllowUserToAddRows = false;
		this.dgvElementResult.AllowUserToDeleteRows = false;
		this.dgvElementResult.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvElementResult.Columns.AddRange(this.ColName);
		this.dgvElementResult.Location = new System.Drawing.Point(40, 72);
		this.dgvElementResult.Name = "dgvElementResult";
		this.dgvElementResult.RowHeadersVisible = false;
		this.dgvElementResult.RowHeadersWidth = 51;
		this.dgvElementResult.RowTemplate.Height = 27;
		this.dgvElementResult.Size = new System.Drawing.Size(906, 173);
		this.dgvElementResult.TabIndex = 3;
		this.ColName.HeaderText = "参数";
		this.ColName.MinimumWidth = 6;
		this.ColName.Name = "ColName";
		this.ColName.Width = 125;
		this.wizardPageScan1.Controls.Add(this.listBoxProcess);
		this.wizardPageScan1.Controls.Add(this.label12);
		this.wizardPageScan1.Description = "仪器自检正在运行";
		this.wizardPageScan1.Location = new System.Drawing.Point(0, 0);
		this.wizardPageScan1.Name = "wizardPageScan1";
		this.wizardPageScan1.Size = new System.Drawing.Size(428, 208);
		this.wizardPageScan1.TabIndex = 5;
		this.wizardPageScan1.Title = "开始扫描";
		this.listBoxProcess.FormattingEnabled = true;
		this.listBoxProcess.ItemHeight = 15;
		this.listBoxProcess.Location = new System.Drawing.Point(49, 127);
		this.listBoxProcess.Name = "listBoxProcess";
		this.listBoxProcess.Size = new System.Drawing.Size(902, 289);
		this.listBoxProcess.TabIndex = 1;
		this.label12.AutoSize = true;
		this.label12.Location = new System.Drawing.Point(56, 85);
		this.label12.Name = "label12";
		this.label12.Size = new System.Drawing.Size(0, 15);
		this.label12.TabIndex = 0;
		this.wizardPageEnterSampler1.Controls.Add(this.btnContinue);
		this.wizardPageEnterSampler1.Controls.Add(this.btnPause);
		this.wizardPageEnterSampler1.Controls.Add(this.lblUptake);
		this.wizardPageEnterSampler1.Controls.Add(this.barUptake);
		this.wizardPageEnterSampler1.Controls.Add(this.label8);
		this.wizardPageEnterSampler1.Description = "5ppb  Li Be Co Y In Ce Bi Tl 调谐液进样";
		this.wizardPageEnterSampler1.Location = new System.Drawing.Point(0, 0);
		this.wizardPageEnterSampler1.Name = "wizardPageEnterSampler1";
		this.wizardPageEnterSampler1.Size = new System.Drawing.Size(428, 208);
		this.wizardPageEnterSampler1.TabIndex = 4;
		this.wizardPageEnterSampler1.Title = "调谐液进样";
		this.btnContinue.Location = new System.Drawing.Point(409, 243);
		this.btnContinue.Margin = new System.Windows.Forms.Padding(4);
		this.btnContinue.Name = "btnContinue";
		this.btnContinue.Size = new System.Drawing.Size(100, 29);
		this.btnContinue.TabIndex = 9;
		this.btnContinue.Text = "继续";
		this.btnContinue.UseVisualStyleBackColor = true;
		this.btnPause.Location = new System.Drawing.Point(259, 243);
		this.btnPause.Margin = new System.Windows.Forms.Padding(4);
		this.btnPause.Name = "btnPause";
		this.btnPause.Size = new System.Drawing.Size(100, 29);
		this.btnPause.TabIndex = 8;
		this.btnPause.Text = "暂停";
		this.btnPause.UseVisualStyleBackColor = true;
		this.lblUptake.AutoSize = true;
		this.lblUptake.Location = new System.Drawing.Point(365, 205);
		this.lblUptake.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblUptake.Name = "lblUptake";
		this.lblUptake.Size = new System.Drawing.Size(39, 15);
		this.lblUptake.TabIndex = 7;
		this.lblUptake.Text = "40 s";
		this.barUptake.Location = new System.Drawing.Point(154, 158);
		this.barUptake.Margin = new System.Windows.Forms.Padding(4);
		this.barUptake.Maximum = 40;
		this.barUptake.Name = "barUptake";
		this.barUptake.Size = new System.Drawing.Size(496, 29);
		this.barUptake.Step = 1;
		this.barUptake.TabIndex = 6;
		this.label8.AutoSize = true;
		this.label8.Location = new System.Drawing.Point(114, 113);
		this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label8.Name = "label8";
		this.label8.Size = new System.Drawing.Size(353, 15);
		this.label8.TabIndex = 5;
		this.label8.Text = "提升溶液，点击 下一步 跳过此步骤，直接开始调谐";
		this.wizardPageLowConPrepare.Controls.Add(this.lblSolution);
		this.wizardPageLowConPrepare.Controls.Add(this.label6);
		this.wizardPageLowConPrepare.Controls.Add(this.label7);
		this.wizardPageLowConPrepare.Description = "进调谐液";
		this.wizardPageLowConPrepare.Location = new System.Drawing.Point(0, 0);
		this.wizardPageLowConPrepare.Name = "wizardPageLowConPrepare";
		this.wizardPageLowConPrepare.Size = new System.Drawing.Size(428, 208);
		this.wizardPageLowConPrepare.TabIndex = 3;
		this.wizardPageLowConPrepare.Title = "进样";
		this.lblSolution.AutoSize = true;
		this.lblSolution.Location = new System.Drawing.Point(78, 201);
		this.lblSolution.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblSolution.Name = "lblSolution";
		this.lblSolution.Size = new System.Drawing.Size(290, 15);
		this.lblSolution.TabIndex = 5;
		this.lblSolution.Text = "5ppb的Li Be Co Y In Ce Bi Tl的调谐液";
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(24, 166);
		this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(82, 15);
		this.label6.TabIndex = 4;
		this.label6.Text = "溶液要求：";
		this.label7.AutoSize = true;
		this.label7.Location = new System.Drawing.Point(24, 114);
		this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(308, 15);
		this.label7.TabIndex = 3;
		this.label7.Text = "将进样管放入溶液后，点击 下一步 提升溶液";
		this.wizardPageMassResult.Controls.Add(this.dgvMassResolution);
		this.wizardPageMassResult.Description = "Li Be Co Y In Ce Bi Tl分辨率和峰误差分析";
		this.wizardPageMassResult.Location = new System.Drawing.Point(0, 0);
		this.wizardPageMassResult.Name = "wizardPageMassResult";
		this.wizardPageMassResult.Size = new System.Drawing.Size(428, 208);
		this.wizardPageMassResult.TabIndex = 10;
		this.wizardPageMassResult.Title = "质量轴扫描结果";
		this.dgvMassResolution.AllowUserToAddRows = false;
		this.dgvMassResolution.AllowUserToDeleteRows = false;
		this.dgvMassResolution.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		this.dgvMassResolution.Columns.AddRange(this.dataGridViewTextBoxColumn4, this.dataGridViewTextBoxColumn5, this.dataGridViewTextBoxColumn6, this.dataGridViewTextBoxColumn8, this.dataGridViewTextBoxColumn9, this.dataGridViewTextBoxColumn10, this.dataGridViewTextBoxColumn11, this.dataGridViewTextBoxColumn13, this.dataGridViewTextBoxColumn14);
		this.dgvMassResolution.Location = new System.Drawing.Point(12, 88);
		this.dgvMassResolution.Name = "dgvMassResolution";
		this.dgvMassResolution.RowHeadersVisible = false;
		this.dgvMassResolution.RowHeadersWidth = 51;
		this.dgvMassResolution.RowTemplate.Height = 27;
		this.dgvMassResolution.Size = new System.Drawing.Size(906, 173);
		this.dgvMassResolution.TabIndex = 4;
		this.dataGridViewTextBoxColumn4.HeaderText = "参数";
		this.dataGridViewTextBoxColumn4.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
		this.dataGridViewTextBoxColumn4.Width = 125;
		this.dataGridViewTextBoxColumn5.HeaderText = "Li";
		this.dataGridViewTextBoxColumn5.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
		this.dataGridViewTextBoxColumn5.Width = 125;
		this.dataGridViewTextBoxColumn6.HeaderText = "Be";
		this.dataGridViewTextBoxColumn6.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
		this.dataGridViewTextBoxColumn6.Width = 125;
		this.dataGridViewTextBoxColumn8.HeaderText = "Co";
		this.dataGridViewTextBoxColumn8.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
		this.dataGridViewTextBoxColumn8.Width = 125;
		this.dataGridViewTextBoxColumn9.HeaderText = "Y";
		this.dataGridViewTextBoxColumn9.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
		this.dataGridViewTextBoxColumn9.Width = 125;
		this.dataGridViewTextBoxColumn10.HeaderText = "In";
		this.dataGridViewTextBoxColumn10.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
		this.dataGridViewTextBoxColumn10.Width = 125;
		this.dataGridViewTextBoxColumn11.HeaderText = "Ce";
		this.dataGridViewTextBoxColumn11.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
		this.dataGridViewTextBoxColumn11.Width = 125;
		this.dataGridViewTextBoxColumn13.HeaderText = "Bi";
		this.dataGridViewTextBoxColumn13.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
		this.dataGridViewTextBoxColumn13.Width = 125;
		this.dataGridViewTextBoxColumn14.HeaderText = "Tl";
		this.dataGridViewTextBoxColumn14.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
		this.dataGridViewTextBoxColumn14.Width = 125;
		this.wizardPageScan2.Controls.Add(this.graphMass);
		this.wizardPageScan2.Controls.Add(this.label14);
		this.wizardPageScan2.Description = "质量轴检查";
		this.wizardPageScan2.Location = new System.Drawing.Point(0, 0);
		this.wizardPageScan2.Name = "wizardPageScan2";
		this.wizardPageScan2.Size = new System.Drawing.Size(428, 208);
		this.wizardPageScan2.TabIndex = 9;
		this.wizardPageScan2.Title = "开始扫描";
		this.graphMass.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
		this.graphMass.Location = new System.Drawing.Point(14, 117);
		this.graphMass.Margin = new System.Windows.Forms.Padding(5, 4, 5, 4);
		this.graphMass.Name = "graphMass";
		this.graphMass.ScrollGrace = 0.0;
		this.graphMass.ScrollMaxX = 0.0;
		this.graphMass.ScrollMaxY = 0.0;
		this.graphMass.ScrollMaxY2 = 0.0;
		this.graphMass.ScrollMinX = 0.0;
		this.graphMass.ScrollMinY = 0.0;
		this.graphMass.ScrollMinY2 = 0.0;
		this.graphMass.Size = new System.Drawing.Size(966, 304);
		this.graphMass.TabIndex = 4;
		this.label14.AutoSize = true;
		this.label14.Location = new System.Drawing.Point(56, 78);
		this.label14.Name = "label14";
		this.label14.Size = new System.Drawing.Size(0, 15);
		this.label14.TabIndex = 0;
		this.wizardPageEnterSampler2.Controls.Add(this.btnContinue1);
		this.wizardPageEnterSampler2.Controls.Add(this.btnPause1);
		this.wizardPageEnterSampler2.Controls.Add(this.lblUptake1);
		this.wizardPageEnterSampler2.Controls.Add(this.barUptake1);
		this.wizardPageEnterSampler2.Controls.Add(this.label13);
		this.wizardPageEnterSampler2.Description = "质量轴检查，进样时间20s";
		this.wizardPageEnterSampler2.Location = new System.Drawing.Point(0, 0);
		this.wizardPageEnterSampler2.Name = "wizardPageEnterSampler2";
		this.wizardPageEnterSampler2.Size = new System.Drawing.Size(428, 208);
		this.wizardPageEnterSampler2.TabIndex = 8;
		this.wizardPageEnterSampler2.Title = "质量轴检查";
		this.btnContinue1.Location = new System.Drawing.Point(409, 243);
		this.btnContinue1.Margin = new System.Windows.Forms.Padding(4);
		this.btnContinue1.Name = "btnContinue1";
		this.btnContinue1.Size = new System.Drawing.Size(100, 29);
		this.btnContinue1.TabIndex = 14;
		this.btnContinue1.Text = "继续";
		this.btnContinue1.UseVisualStyleBackColor = true;
		this.btnContinue1.Click += new System.EventHandler(btnContinue1_Click);
		this.btnPause1.Location = new System.Drawing.Point(259, 243);
		this.btnPause1.Margin = new System.Windows.Forms.Padding(4);
		this.btnPause1.Name = "btnPause1";
		this.btnPause1.Size = new System.Drawing.Size(100, 29);
		this.btnPause1.TabIndex = 13;
		this.btnPause1.Text = "暂停";
		this.btnPause1.UseVisualStyleBackColor = true;
		this.btnPause1.Click += new System.EventHandler(btnPause1_Click);
		this.lblUptake1.AutoSize = true;
		this.lblUptake1.Location = new System.Drawing.Point(365, 205);
		this.lblUptake1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.lblUptake1.Name = "lblUptake1";
		this.lblUptake1.Size = new System.Drawing.Size(39, 15);
		this.lblUptake1.TabIndex = 12;
		this.lblUptake1.Text = "40 s";
		this.barUptake1.Location = new System.Drawing.Point(154, 158);
		this.barUptake1.Margin = new System.Windows.Forms.Padding(4);
		this.barUptake1.Maximum = 40;
		this.barUptake1.Name = "barUptake1";
		this.barUptake1.Size = new System.Drawing.Size(496, 29);
		this.barUptake1.Step = 1;
		this.barUptake1.TabIndex = 11;
		this.label13.AutoSize = true;
		this.label13.Location = new System.Drawing.Point(114, 113);
		this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label13.Name = "label13";
		this.label13.Size = new System.Drawing.Size(353, 15);
		this.label13.TabIndex = 10;
		this.label13.Text = "提升溶液，点击 下一步 跳过此步骤，直接开始调谐";
		this.wizardPageHighConPrepare.Controls.Add(this.label9);
		this.wizardPageHighConPrepare.Controls.Add(this.label10);
		this.wizardPageHighConPrepare.Controls.Add(this.label11);
		this.wizardPageHighConPrepare.Description = "质量轴检查";
		this.wizardPageHighConPrepare.Location = new System.Drawing.Point(0, 0);
		this.wizardPageHighConPrepare.Name = "wizardPageHighConPrepare";
		this.wizardPageHighConPrepare.Size = new System.Drawing.Size(428, 208);
		this.wizardPageHighConPrepare.TabIndex = 7;
		this.wizardPageHighConPrepare.Title = "质量轴检查";
		this.label9.AutoSize = true;
		this.label9.Location = new System.Drawing.Point(115, 210);
		this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label9.Name = "label9";
		this.label9.Size = new System.Drawing.Size(0, 15);
		this.label9.TabIndex = 8;
		this.label10.AutoSize = true;
		this.label10.Location = new System.Drawing.Point(61, 175);
		this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label10.Name = "label10";
		this.label10.Size = new System.Drawing.Size(82, 15);
		this.label10.TabIndex = 7;
		this.label10.Text = "溶液要求：";
		this.label11.AutoSize = true;
		this.label11.Location = new System.Drawing.Point(61, 123);
		this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label11.Name = "label11";
		this.label11.Size = new System.Drawing.Size(308, 15);
		this.label11.TabIndex = 6;
		this.label11.Text = "将进样管放入溶液后，点击 下一步 提升溶液";
		this.wizardPageScan.Controls.Add(this.textBox3);
		this.wizardPageScan.Controls.Add(this.textBox2);
		this.wizardPageScan.Controls.Add(this.label5);
		this.wizardPageScan.Controls.Add(this.label3);
		this.wizardPageScan.Description = "设置积分时间、重复测量次数";
		this.wizardPageScan.Location = new System.Drawing.Point(0, 0);
		this.wizardPageScan.Name = "wizardPageScan";
		this.wizardPageScan.Size = new System.Drawing.Size(994, 437);
		this.wizardPageScan.TabIndex = 2;
		this.wizardPageScan.Title = "设置扫描参数";
		this.textBox3.Location = new System.Drawing.Point(173, 142);
		this.textBox3.Name = "textBox3";
		this.textBox3.Size = new System.Drawing.Size(100, 25);
		this.textBox3.TabIndex = 1;
		this.textBox3.Text = "30";
		this.textBox2.Location = new System.Drawing.Point(173, 108);
		this.textBox2.Name = "textBox2";
		this.textBox2.Size = new System.Drawing.Size(100, 25);
		this.textBox2.TabIndex = 1;
		this.textBox2.Text = "50";
		this.label5.AutoSize = true;
		this.label5.Location = new System.Drawing.Point(67, 145);
		this.label5.Name = "label5";
		this.label5.Size = new System.Drawing.Size(82, 15);
		this.label5.TabIndex = 0;
		this.label5.Text = "重复次数：";
		this.label3.AutoSize = true;
		this.label3.Location = new System.Drawing.Point(21, 111);
		this.label3.Name = "label3";
		this.label3.Size = new System.Drawing.Size(128, 15);
		this.label3.TabIndex = 0;
		this.label3.Text = "积分时间（ms）：";
		this.wizardPageElements.Controls.Add(this.label15);
		this.wizardPageElements.Controls.Add(this.label4);
		this.wizardPageElements.Description = "参与分析的元素和比率";
		this.wizardPageElements.Location = new System.Drawing.Point(0, 0);
		this.wizardPageElements.Name = "wizardPageElements";
		this.wizardPageElements.Size = new System.Drawing.Size(994, 437);
		this.wizardPageElements.TabIndex = 1;
		this.wizardPageElements.Title = "分析元素设定";
		this.label15.AutoSize = true;
		this.label15.Font = new System.Drawing.Font("宋体", 13.8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
		this.label15.Location = new System.Drawing.Point(56, 178);
		this.label15.Name = "label15";
		this.label15.Size = new System.Drawing.Size(352, 23);
		this.label15.TabIndex = 0;
		this.label15.Text = "同位素比率： CeO/Ce   Ce++/Ce";
		this.label4.AutoSize = true;
		this.label4.Font = new System.Drawing.Font("宋体", 13.8f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
		this.label4.Location = new System.Drawing.Point(56, 128);
		this.label4.Name = "label4";
		this.label4.Size = new System.Drawing.Size(559, 23);
		this.label4.TabIndex = 0;
		this.label4.Text = "元素：Li  Be  Co  Y  In  Ce  Bi   Tl  CeO Ce++";
		this.wizardPageWelcome.Description = "通过该向导完成仪器自检";
		this.wizardPageWelcome.Location = new System.Drawing.Point(0, 0);
		this.wizardPageWelcome.Name = "wizardPageWelcome";
		this.wizardPageWelcome.Size = new System.Drawing.Size(994, 437);
		this.wizardPageWelcome.Style = CristiPotlog.Controls.WizardPageStyle.Welcome;
		this.wizardPageWelcome.TabIndex = 0;
		this.wizardPageWelcome.Title = "仪器自检";
		this.wizardPageWelcome.Click += new System.EventHandler(wizardPageWelcome_Click);
		this.wizardPageResultCal.Controls.Add(this.textBox1);
		this.wizardPageResultCal.Controls.Add(this.label2);
		this.wizardPageResultCal.Controls.Add(this.label1);
		this.wizardPageResultCal.Description = "死时间结果计算";
		this.wizardPageResultCal.Location = new System.Drawing.Point(0, 0);
		this.wizardPageResultCal.Name = "wizardPageResultCal";
		this.wizardPageResultCal.Size = new System.Drawing.Size(994, 437);
		this.wizardPageResultCal.TabIndex = 17;
		this.wizardPageResultCal.Title = "死时间计算";
		this.textBox1.Location = new System.Drawing.Point(102, 121);
		this.textBox1.Name = "textBox1";
		this.textBox1.Size = new System.Drawing.Size(171, 25);
		this.textBox1.TabIndex = 4;
		this.label2.AutoSize = true;
		this.label2.Location = new System.Drawing.Point(279, 127);
		this.label2.Name = "label2";
		this.label2.Size = new System.Drawing.Size(15, 15);
		this.label2.TabIndex = 2;
		this.label2.Text = "s";
		this.label1.AutoSize = true;
		this.label1.Location = new System.Drawing.Point(29, 127);
		this.label1.Name = "label1";
		this.label1.Size = new System.Drawing.Size(67, 15);
		this.label1.TabIndex = 3;
		this.label1.Text = "死时间：";
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
		base.ClientSize = new System.Drawing.Size(994, 485);
		base.Controls.Add(this.wizard1);
		base.Name = "FormInstrumentCheckExperiment";
		this.Text = "仪器自检";
		base.Load += new System.EventHandler(FormInstrumentDeadTime_Load);
		this.wizard1.ResumeLayout(false);
		this.PageCheckResult.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)this.dgvRatioResult).EndInit();
		((System.ComponentModel.ISupportInitialize)this.dgvBkgResult).EndInit();
		((System.ComponentModel.ISupportInitialize)this.dgvElementResult).EndInit();
		this.wizardPageScan1.ResumeLayout(false);
		this.wizardPageScan1.PerformLayout();
		this.wizardPageEnterSampler1.ResumeLayout(false);
		this.wizardPageEnterSampler1.PerformLayout();
		this.wizardPageLowConPrepare.ResumeLayout(false);
		this.wizardPageLowConPrepare.PerformLayout();
		this.wizardPageMassResult.ResumeLayout(false);
		((System.ComponentModel.ISupportInitialize)this.dgvMassResolution).EndInit();
		this.wizardPageScan2.ResumeLayout(false);
		this.wizardPageScan2.PerformLayout();
		this.wizardPageEnterSampler2.ResumeLayout(false);
		this.wizardPageEnterSampler2.PerformLayout();
		this.wizardPageHighConPrepare.ResumeLayout(false);
		this.wizardPageHighConPrepare.PerformLayout();
		this.wizardPageScan.ResumeLayout(false);
		this.wizardPageScan.PerformLayout();
		this.wizardPageElements.ResumeLayout(false);
		this.wizardPageElements.PerformLayout();
		this.wizardPageResultCal.ResumeLayout(false);
		this.wizardPageResultCal.PerformLayout();
		base.ResumeLayout(false);
	}
}
